package sk.uniza.fri.cerviix.client.network.message.server;

import java.io.IOException;

import sk.uniza.fri.cerviix.client.Game;
import sk.uniza.fri.cerviix.client.network.ClientMessage;
import sk.uniza.fri.cerviix.client.network.ServerMessage;

public class PlayerRemoveMessage extends ServerMessage
{
	private int playerId;
	
	@Override
	public void receive() throws IOException
	{
		playerId = stream.readInt();
	}

	public void run(Game game)
	{
		game.removePlayer(playerId);
	}
}
